import http from "../axios/http"

const getBanner = async () => {
  let { data } = await http.get("/small4/banner/list")
  return Promise.resolve(data)
}
const getKanjia = async () => {
  let { data } = await http.get("small4/shop/goods/kanjia/list")
  return Promise.resolve(data)
}

const getJingxuan = async () => {
  let { data } = await http.get("small4/cms/news/list")
  return Promise.resolve(data)
}

const getRenqi = async () => {
  let { data } = await http.get("small4/shop/goods/list")
  return Promise.resolve(data)
}

const categoryAll = async () => {
  let { data } = await http.get("small4/shop/goods/category/all")
  return Promise.resolve(data)
}

export { getBanner, getKanjia, getJingxuan, getRenqi, categoryAll }
